package com.woniu.client;

import com.woniu.dto.JunkTypeDto;
import com.woniu.model.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(name = "depot-server",path = "/depot")
public interface DepotClient {
    /**
     * 生成入库申请表
     * orderNum:订单号
     */
    @GetMapping("/review/add/{orderNum}")
    @ApiOperation("生成入库申请表")
    Result<?> add(@PathVariable("orderNum") String orderNum);

    /**
     * 用户查看垃圾种类
     * list 所有垃圾种类集合
     */
    @GetMapping("/junkType/checkJunkType")
    @ApiOperation("用户查看所有垃圾种类")
    Result<List<JunkTypeDto>> checkJunkType();
}
